package com.pangu.message.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * @author Linbizhao
 * @description:
 * @since 2023/11/23 13:58
 */
@Getter
@AllArgsConstructor
public enum MessageEvent {

    /**
     * 状态变更
     */
    changeStatus,

    ;

    public static MessageEvent getEnumByType(String type) {
        return Arrays.stream(MessageEvent.values()).filter(v -> v.name().equals(type)).findFirst().get();
    }
}
